from django.conf.urls.defaults import *

urlpatterns = patterns('djanosite.polls.views',
     (r'^djanosite/', include('djanosite.admin.urls')),
     (r'^admin/', include('django.contrib.admin.urls')),
     (r'^polls/$','index'),
     (r'^polls/(?P<poll_id>\d+)/$', 'detail'),
     (r'^polls/(?P<poll_id>\d+)/results/$', 'results'),
     (r'^polls/(?P<poll_id>\d+)/vote/$', 'vote'),
      # Remove this and make your webserver do it!
     (r'^sitemedia/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': 'settings.MEDIA_ROOT[:-1]'
      }),
)
